package com.cloud.system.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.cloud.system.api.entity.RoleResources;
import com.cloud.system.common.utils.BaseMapperHelper;

public interface RoleResourcesMapper extends BaseMapperHelper<RoleResources> {

	@Select("select sr.res_code from role_resource rr, sys_resources sr where sr.delete_flag = 0 and "
			+ "rr.res_id = sr.res_id and sr.delete_flag = 0 and rr.role_id = #{roleId}")
	@ResultType(value = Long.class)
	List<String> findRoleResourceAuthority(long roleId);
}